<div class="source">
  <div>
    <com-title [comTitle]="naviTitle"></com-title>
  </div>

  <div class="source-body" [@comLife] *ngIf="current == 0">
    <div class="source-operator">
      <button (click)="configDb(1)">创建数据源</button>
      <div>
        <nz-input [nzType]="'search'" [nzPlaceHolder]="'输入数据源名称'" style="width: 200px;" (nzOnSearch)="onSearch($event)"></nz-input>
      </div>
    </div>
    <div class="source-table">
      <com-dbsource [dbSource]="dbSourcelist"></com-dbsource>
    </div>
  </div>

  <div *ngIf="current == 1" [@comLife] >
    <div class="config-db">
      <div class="source-operator">
        <button (click)="configDb(0)">数据源列表</button>
      </div>
      <div class="source-table">
        <com-configdb></com-configdb>
      </div>
    </div>
  </div>

</div>